package org.aurora.module.gateway.auth;

import cn.dev33.satoken.stp.StpInterface;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * StpInterfaceImpl
 * <pre>
 * description: Custom permission check interface extend
 * create date: 2025-03-18 22:43:05
 * </pre>
 *
 * @author cao.yong
 */
@Component
public class StpInterfaceImpl implements StpInterface {
    @Override
    public List<String> getPermissionList(Object o, String s) {
        return List.of("auth");
    }

    @Override
    public List<String> getRoleList(Object o, String s) {
        return List.of("super_admin");
    }
}
